package com.mebs.model.logistics;

import org.jt.jet.content.JetNamedObject;

public enum StorageOutState implements JetNamedObject {
    PARTIAL(1, "partial"),
    COMPLETE(2, "complete");

    public final int type;
    public final String name;

    StorageOutState(int type, String name)
    {
        this.type = type;
        this.name = name;
    }

    public static StorageOutState getObjectByType(int type)
    {
        return StorageOutState.values()[type - 1];
    }

    public Object getObjectId()
    {
        return type;
    }

    public String getObjectName()
    {
        return name;
    }

    public int getType()
    {
        return type;
    }

    public String getName()
    {
        return name;
    }
}
